/*
 * myimagepanel.h
 *
 *  Created on: Mar 1, 2013
 *      Author: RDU
 */

#ifndef MYIMAGEPANEL_H_
#define MYIMAGEPANEL_H_

#include "wx/wx.h"
#include "opencv/cv.h"

using namespace cv;

class MyImagePanel : public wxPanel
{
public:
	MyImagePanel(wxWindow* parent, const wxPoint& pos, const wxSize& size);
	virtual ~MyImagePanel();

//public data
public:

//protected data
protected:
	wxImage m_imageLoad;
	wxImage m_imageDefault;
	wxBitmap m_bitMap;
	bool m_bDrawing;
	int m_nWidth;
	int m_nHeight;

//public methods
public:
	wxImage CvMat2WxImage(const Mat& cvImg);
	void DrawPano(Mat cvImage);
	void Draw(wxDC& dc);

//private methods
private:
	void OnPaint(wxPaintEvent& event);
	void OnSize(wxSizeEvent& event);

//protected methods
protected:
	DECLARE_EVENT_TABLE()
};

#endif /* MYIMAGEPANEL_H_ */
